public abstract class MachineDecorator implements OldMachineInterface {
    protected OldMachineInterface machine;

    public MachineDecorator(OldMachineInterface machine) {
        this.machine = machine;
    }

    @Override
    public double getSensorData() {
        return machine.getSensorData();
    }

    @Override
    public void startEngine() {
        machine.startEngine();
    }

    @Override
    public String getStatus() {
        return machine.getStatus();
    }
}